#!/bin/bash
openssl genrsa -out private_key.pem 2048 > /dev/null
openssl pkcs8 -topk8 -inform PEM -outform DER -in private_key.pem -out ~/keys/private_key_$1.der -nocrypt > /dev/null
openssl rsa -in private_key.pem -pubout -outform DER -out ~/keys/public_key_$1.der > /dev/null
openssl rsa -in private_key.pem -pubout -outform PEM -out ~/keys/public_key_$1.pem > /dev/null
